chcp 65001
@echo off
rem set logPath=20231024_%random%_%COMPUTERNAME%
set /p name=请输入您的姓名:
set /p net_id=请输入您接入的网络(1 办公互联网，2 办公业务网，3 生产网络，4 模拟网，5 测试网):

if %net_id% EQU 1 (
    set net=办公互联网
) 

if %net_id% EQU 2 (
    set net=办公业务网
) 

if %net_id% EQU 3 (
    set net=生产网络
) 

if %net_id% EQU 4 (
    set net=模拟网
) 

if %net_id% EQU 5 (
    set net=测试网
)

echo on

set logPath=%name%_%net%
mkdir %logPath%

set logFileName=%COMPUTERNAME%_BIOS.txt
set logFullName="%~dp0%logPath%\%logFileName%"

echo %logFullName%

wmic /append:%logFullName% bios get serialnumber
wmic /append:%logFullName% csproduct get vendor,name,identifyingnumber
wmic /append:%logFullName%  nicconfig where index=1 get DefaultIPGateway, DNSServerSearchOrder, IPAddress, IPSubnet, Caption, MACAddress /value

set logFileName=%COMPUTERNAME%_IPCONFIG.txt
set logFullName=%logPath%\%logFileName%

ipconfig /all >> %logFullName% 2>&1
cscript //nologo %windir%\system32\slmgr.vbs /dli >> %logFullName%